package org.jeecg.modules.task.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.performance.Model.TaskBaseModel;
import org.jeecg.modules.task.entity.TaskInfoBase;
import org.jeecg.modules.workflow.entity.WorkFlowBase;

import java.util.List;
import java.util.Map;

/**
 * @Description: 任务基础信息
 * @Author: wufanxin
 * @Date:  2021-06-15
 * @Version: V1.0
 */
public interface TaskInfoBaseMapper extends BaseMapper<TaskInfoBase> {

    /**
     * 查询任务列表
     * @param paramMap start,limit ,userId,departs
     * @return
     */
    public List<Map<String,Object>> queryTaskList(Map<String,Object> paramMap);
    public Long queryTaskListTotal(Map<String,Object> paramMap);


    /**
     * 查询任务列表（已经处理）
     * @param paramMap start,limit ,userId,departs
     * @return
     */
    public List<Map<String,Object>> queryHisTaskList(Map<String,Object> paramMap);
    public List<Map<String,Object>> queryHisTaskList2(Map<String,Object> paramMap);

    Long queryHisTaskListTotal(Map<String,Object> paramMap);
    Long queryHisTaskListTotal2(Map<String,Object> paramMap);


    List<String> selectUnionIds(String contentNo);
    List<String> selectUnionIdsByContenId(String contentId);
    List<String> selectUnionNames(String contentNo);

    /**
     * 查询计算绩效得到任务
     * @param startTime
     * @param endTime
     * @return
     */
    List<TaskBaseModel>getPerforTask(@Param(value = "startTime")String startTime, @Param(value = "endTime") String endTime);

    Map<String,Object> queryQuickStart(String taskNo);


    public List<Map<String,Object>> querySyncTaskList(Map<String,Object> paramMap);


    Long querySyncTaskListTotal(Map<String,Object> paramMap);

    public List<Map<String,Object>> queryAllTaskList(Map<String,Object> paramMap);
    Long queryAllTaskListTotal(Map<String,Object> paramMap);
    public List<Map<String,Object>> queryFinishedTaskList(Map<String,Object> paramMap);

    Long queryFinishedTaskListTotal(Map<String,Object> paramMap);

}
